package com.example.tool.bean.wcaiexcel;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class SmartSheetQueryResponse extends WeComApiResponse{
    @JsonProperty("sheet_list")
    private List<SheetInfo> sheetList=new ArrayList<>();

    /**
     * 子表信息实体
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class SheetInfo {
        @JsonProperty("sheet_id")
        private String sheetId;
        @JsonProperty("title")
        private String title;
        @JsonProperty("is_visible")
        private Boolean isVisible;
        @JsonProperty("type")
        private String type; // "dashboard", "external", "smartsheet"
    }

}
